package com.maori.languageapp.fragments;

import com.maori.languageapp.R;
import com.maori.languageapp.Maori_Capture_Idiom;
import com.maori.languageapp.Maori_Capture_Phrase;
import com.maori.languageapp.Maori_Capture_Song;
import com.maori.languageapp.Maori_Capture_Story;
import com.maori.languageapp.Maori_Capture_Word;
import com.maori.languageapp.Maori_Categories;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

public class Maori_Fragment_Capture extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		View view = inflater.inflate(R.layout.maori_fragment_capture, null);

		Button captureWord = (Button) view.findViewById(R.id.capture_word);
		Button capturePhrase = (Button) view.findViewById(R.id.capture_phrase);
		Button captureStory = (Button) view.findViewById(R.id.capture_story);
		Button captureSong = (Button) view.findViewById(R.id.capture_songs);
		Button captureIdiom = (Button) view.findViewById(R.id.capture_idioms);

		// Display Option
		// Display_Types 1 Discover ***** Index : 100
		// Display_Types 2 Capture ***** Index : 200
		// Display_Types 3 Curate ***** Index : 300
		
		captureWord.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg) {
				//Intent i = new Intent(getActivity(), Maori_Capture_Word.class);
				Intent i = new Intent(getActivity(), Maori_Categories.class);
				i.putExtra("Display_Type", "200");
				i.putExtra("Capture_Type", "1");
				startActivity(i);
			}
		});
		
		capturePhrase.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg) {
				//Intent i = new Intent(getActivity(), Maori_Capture_Phrase.class);
				Intent i = new Intent(getActivity(), Maori_Categories.class);
				i.putExtra("Display_Type", "200");
				i.putExtra("Capture_Type", "2");
				startActivity(i);
			}
		});
		
		captureStory.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg) {
				//Intent i = new Intent(getActivity(), Maori_Capture_Story.class);
				Intent i = new Intent(getActivity(), Maori_Categories.class);
				i.putExtra("Display_Type", "200");
				i.putExtra("Capture_Type", "3");
				startActivity(i);
			}
		});
		
		captureSong.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg) {
				//Intent i = new Intent(getActivity(), Maori_Capture_Song.class);
				Intent i = new Intent(getActivity(), Maori_Categories.class);
				i.putExtra("Display_Type", "200");
				i.putExtra("Capture_Type", "4");
				startActivity(i);
			}
		});
		
		captureIdiom.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg) {
				//Intent i = new Intent(getActivity(), Maori_Capture_Idiom.class);
				Intent i = new Intent(getActivity(), Maori_Categories.class);
				i.putExtra("Display_Type", "200");
				i.putExtra("Capture_Type", "5");
				startActivity(i);
			}
		});

		return view;
	}

	/*
	 * @Override protected void onCreate(Bundle savedInstanceState) {
	 * super.onCreate(savedInstanceState);
	 * setContentView(R.layout.maori_fragment_capture); }
	 */

}
